package com.fishery.refrigeratory.client;

import com.fishery.entity.Result;
import com.fishery.refrigeratory.entity.vo.OrderVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;


@Component
@FeignClient(value = "fishery-order-service")
public interface OrderClient {
    @PostMapping("/order")
    public Result createOrder(@RequestBody OrderVo orderVo);
}
